package cn.NewsServlet;

import cn.NewsDao.NewsDao4;
import cn.NewsDaoImpl.NewsDaoImpl4;
import cn.entity.News4;

import java.util.List;

public class Text {
    public static void main(String[] args) {
        NewsDao4 newsDao1 = new NewsDaoImpl4();
        List<News4> newsList = newsDao1.getNewsList();
        for (int i=0;i<newsList.size();i++){
            System.out.println(newsList.get(i).getUserName() + newsList.get(i).getPassword());
        }
    }
}
